#ifndef DOCTORINFO_H
#define DOCTORINFO_H

#include <QWidget>
#include <QTcpSocket>
#include <QVBoxLayout>
#include <QLabel>
#include <QLineEdit>
#include <QTextEdit>
#include <QPushButton>
#include <QMap>

class DoctorInfo : public QWidget {
    Q_OBJECT

public:
    explicit DoctorInfo(QTcpSocket *socket, QWidget *parent = nullptr);

private slots:
    void onQueryButtonClicked();
    void onBackButtonClicked();

private:
    QTcpSocket *tcpSocket;
    QLineEdit *doctorNameEdit;
    QTextEdit *doctorInfoDisplay;
};

#endif // DOCTORINFO_H
